#ifndef CUBE_H
#define CUBE_H

#include <QObject>
#include "map.h"

class Cube : public QObject
{
    Q_OBJECT
    public:
    Cube(Map *_parent, double newX, double newY, double newZ, int newSize, int newColor);
    void setCube(int newPoints[12]);
    int *makePolygon(int side);
    void zUpdate();
    void visUpdate();
    bool crashTest();

    Map *cubeMap;
    double x, y, z;
    int size;
    int color;
    double camDistance;
    bool visible;

};

#endif // CUBE_H
